Jenkins Setup

The setup process for a new Jenkins installation is simple. It includes an option to select plugins and create an administrative user.

Step 1: Get the administrator key#

Open Jenkins:

Jenkins installation interface

This is the page we’ll see when accessing Jenkins for the first time after installation. Jenkins is preinstalled to the LVM and is ready for setup.

  • Open a terminal window.
  • Type in the following: $ sudo cat /var/lib/jenkins/secrets/initialAdminPassword.
  • Copy the password to the clipboard.
Copying the administrator password

Commands

Command / Parameter

Description

sudo

This runs the command as root.

cat

This prints the contents of a file to stdout.

/var/lib/jenkins/secrets/initialAdminPassword

This is the path to the generated temporary administrator password.

When Jenkins is installed, a temporary admin password is generated and placed in the initialAdminPassword file. Highlight and copy/paste this password from the terminal window into the password field to complete the installation of Jenkins.

  • Paste the password into the “password” field in the browser.
  • Click “Continue.”
Pasting the administrator password

Step 2: Install Jenkins#

Click the “Install suggested plugins” option.

Click the "Install suggested plugins" option
Installation of suggested plugins

Step 3: Create an administrative user#

The following are the steps to create an administrative account:

  • Enter “devops” in the “Username” field.
  • Enter “katas” in the “Password” field.
  • Enter “DevOps Katas” in the “Full Name” field.
  • Enter “devops@katas.com” in the “E-mail Address” field.
  • Click “Save and Finish.”
  • Click “Start using Jenkins.”
Creating the first admin user

Jenkins is now ready to use.

Gogs Installation